from django.conf.urls import patterns, url
from website.feeds import RssRecipeFeed
"""
@author: Daniel Geymayer
@version: 1.0
"""

urlpatterns = patterns('website.views',
    url(r'^$', 'random_recipe'),
    url(r'^site_notice/$', 'site_notice'),
    url(r'^contact/$', 'contact'),
    url(r'^login/$', 'login_user'),
    url(r'^logout/$', 'logout_user'),
    url(r'^activate/$', 'activate_user'),
    url(r'^register/$', 'register'),
    url(r'^profile/$', 'user_profile'),
    url(r'^change_profile/$', 'change_profile'),
    url(r'^change_pw/$', 'change_pw'),
    url(r'^recipes/$', 'recipes'),
    url(r'^my_recipes/$', 'my_recipes'),
    url(r'^recipe/(?P<recipe_id>\d+)/$', 'recipe'),
    url(r'^create_recipe/$', 'create_recipe'),
    url(r'^edit_recipe/(?P<recipe_id>\d+)/$', 'edit_recipe'),
    url(r'^delete_recipe/(?P<recipe_id>\d+)/$', 'delete_recipe'),
    url(r'^search_recipe/$', 'search_recipe'),
    url(r'^random_recipe/$', 'random_recipe'),
    url(r'^filter$', 'user_filter'),
    url(r'^use_filter$', 'use_filter'),
    url(r'^rate/$', 'rate'),
    url(r'^ajax_search/$', 'ajax_search'),
    url(r'^rss/', RssRecipeFeed()),
)